// 发送验证码store

import { defineStore } from 'pinia'
import { computed, ref } from 'vue'

export const useCodeCountdownStore = defineStore("CodeCountdownId", () => {
    const codeCountdown = ref(5)
    const gettersCodeCountdown = computed(() => {
        return codeCountdown.value
    })
    function setCodeCountdown(data: number) {
        codeCountdown.value = data
    }
    return { codeCountdown, gettersCodeCountdown, setCodeCountdown }
})